.class Lcom/waiqin365/lightapp/chexiao/bi;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/bi;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const v6, 0x7f08013b

    const/4 v5, 0x0

    const/16 v4, 0x8

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/bi;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/ar;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/ar;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "0"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ar;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    :cond_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->w(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->x(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    invoke-virtual {v2, v5}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->x(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ar;->c:Ljava/lang/String;

    invoke-static {v3}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :goto_1
    const/4 v3, 0x1

    invoke-virtual {v2, v1, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setMsg(Ljava/lang/String;Z)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->x(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    new-instance v2, Lcom/waiqin365/lightapp/chexiao/bj;

    invoke-direct {v2, p0, v0}, Lcom/waiqin365/lightapp/chexiao/bj;-><init>(Lcom/waiqin365/lightapp/chexiao/bi;Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)V

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    :cond_3
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ar;->c:Ljava/lang/String;

    goto :goto_1

    :cond_4
    const-string/jumbo v2, "2"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ar;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->w(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->x(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->z(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    :cond_5
    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/ar;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    new-instance v2, Lcom/waiqin365/lightapp/chexiao/bk;

    invoke-direct {v2, p0, v0, v1}, Lcom/waiqin365/lightapp/chexiao/bk;-><init>(Lcom/waiqin365/lightapp/chexiao/bi;Lcom/waiqin365/lightapp/chexiao/CXPDActivity;Lcom/waiqin365/lightapp/chexiao/b/a/ar;)V

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/d/a;->a(Lcom/waiqin365/lightapp/chexiao/d/d;)V

    goto/16 :goto_0

    :pswitch_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/bo;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/bo;->b()Z

    move-result v2

    if-eqz v2, :cond_6

    const-string/jumbo v2, "0"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bo;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_8

    :cond_6
    iget-object v2, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bo;->c:Ljava/lang/String;

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :goto_2
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->showToast(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_7
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bo;->c:Ljava/lang/String;

    goto :goto_2

    :cond_8
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->v(Lcom/waiqin365/lightapp/chexiao/CXPDActivity;)V

    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/waiqin365/lightapp/chexiao/CXPDDetailActivity;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "id"

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bo;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXPDActivity;->finish()V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x21
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
